package org.example.annotation;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

//配置类
@Configuration
//扫描指定包
@ComponentScan("org.example.qita")
public class Config {
    //将返回结果存放在容器中
    @Bean
    public DemoE e(){
        //手动产生了DemoE的对象
        return new DemoE();
    }
}
